#include "inputdialog.h"
#include "ui_inputdialog.h"
InputDialog::InputDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::InputDialog)
{
    this->setWindowIcon(QIcon(":/QSS/image/Window_Icon.png"));
    ui->setupUi(this);
}

InputDialog::~InputDialog()
{
    delete ui;
}

void InputDialog::on_buttonBox_accepted()
{
    QList<QString> *inputDataList=new  QList<QString>();
    inputDataList->append(ui->KeyEdit->text());
    inputDataList->append(ui->ValueEdit->text());
    emit sendDataList(inputDataList);
}

void InputDialog::on_InputDialog_rejected()
{
    QList<QString> *inputDataList=new  QList<QString>();
    inputDataList->append(ui->KeyEdit->text());
    inputDataList->append(ui->ValueEdit->text());
    emit sendDataList(inputDataList);
}
